package com.cars.elasticsearch.domain.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author: caoqianfan
 * @date: 2023/10/12 16:48
 */
@Data
@TableName("sys_file")
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Files implements Serializable {

    @Serial
    private static final long serialVersionUID = -8846061279124619379L;

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 文件名
     */
    private String name;

    /**
     * 类型
     */
    private String type;

    /**
     * 大小
     */
    private Long size;

    /**
     * 路径
     */
    private String url;

    /**
     * 确认文件唯一
     */
    private String md5;

    /**
     * 是否删除
     */
    private Boolean isDelete;

    /**
     * 是否可用
     */
    private Boolean enable;
}